<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>VMS::Stdio - standard I/O functions via VMS extensions - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/VMS::Stdio">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="./VMS::Stdio.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/VMS::Stdio">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/VMS::Stdio">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/VMS::Stdio">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/VMS::Stdio">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/VMS::Stdio">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/VMS::Stdio">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/VMS::Stdio">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/VMS::Stdio">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/VMS::Stdio">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/VMS::Stdio">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/VMS::Stdio">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/VMS::Stdio">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/VMS::Stdio">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/VMS::Stdio">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/VMS::Stdio">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/VMS::Stdio">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/VMS::Stdio">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/VMS::Stdio">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/VMS::Stdio">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/VMS::Stdio">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/VMS::Stdio">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/VMS::Stdio">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/VMS::Stdio">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/VMS::Stdio">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/VMS::Stdio">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/VMS::Stdio">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/VMS::Stdio">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/VMS::Stdio">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/VMS::Stdio">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/VMS::Stdio">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/VMS::Stdio">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/VMS::Stdio">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/VMS::Stdio">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/VMS::Stdio">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/VMS::Stdio">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/VMS::Stdio">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/VMS::Stdio">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/VMS::Stdio">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/VMS::Stdio">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/VMS::Stdio">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/VMS::Stdio">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/VMS::Stdio">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/VMS::Stdio">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/VMS::Stdio">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/VMS::Stdio">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/VMS::Stdio">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/VMS::Stdio">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/VMS::Stdio">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/VMS::Stdio">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/VMS::Stdio">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/VMS::Stdio">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/VMS::Stdio">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/VMS::Stdio">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/VMS::Stdio">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/VMS::Stdio">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/VMS::Stdio">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/VMS::Stdio">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/VMS::Stdio">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/VMS::Stdio">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/VMS::Stdio">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/VMS::Stdio">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/VMS::Stdio">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/VMS::Stdio">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/VMS::Stdio">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/VMS::Stdio">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/VMS::Stdio">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/VMS::Stdio">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/VMS::Stdio">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/VMS::Stdio">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/VMS::Stdio">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/VMS::Stdio">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/VMS::Stdio">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/VMS::Stdio">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/VMS::Stdio">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/VMS::Stdio">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/VMS::Stdio">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/VMS::Stdio">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/VMS::Stdio">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/VMS::Stdio">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/VMS::Stdio">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="./VMS::Stdio.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/VMS::Stdio">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/VMS::Stdio">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/VMS::Stdio">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/VMS::Stdio">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/VMS::Stdio">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/VMS::Stdio">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/VMS::Stdio">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/VMS::Stdio">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/VMS::Stdio">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/VMS::Stdio">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/VMS::Stdio">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/VMS::Stdio">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/VMS::Stdio">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/VMS::Stdio">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/VMS::Stdio">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/VMS::Stdio">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/VMS::Stdio">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/VMS::Stdio">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/VMS::Stdio">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/VMS::Stdio">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/VMS::Stdio">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/VMS::Stdio">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/VMS::Stdio">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/VMS::Stdio">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/VMS::Stdio">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/VMS::Stdio">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/VMS::Stdio">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/VMS::Stdio">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/VMS::Stdio">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/VMS::Stdio">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/VMS::Stdio">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/VMS::Stdio">5.35.1</a>
          <a class="dropdown-item active" href="./VMS::Stdio.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="./VMS::Stdio.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="./VMS::Stdio.html">VMS::Stdio</a>
          <div id="more">
            (<a href="./VMS::Stdio.txt">source</a>,
            <a href="https://metacpan.org/pod/VMS::Stdio">CPAN</a>)
          </div>
            <div id="moduleversion">version 2.45</div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="./VMS::Stdio.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./VMS::Stdio.html#SYNOPSIS">SYNOPSIS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./VMS::Stdio.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./VMS::Stdio.html#REVISION">REVISION</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="./VMS::Stdio.html#NAME">#</a>NAME</h1>

<p>VMS::Stdio - standard I/O functions via VMS extensions</p>

<h1 id="SYNOPSIS"><a class="permalink" href="./VMS::Stdio.html#SYNOPSIS">#</a>SYNOPSIS</h1>

<pre><code>use VMS::Stdio qw( &amp;flush &amp;getname &amp;remove &amp;rewind &amp;setdef &amp;sync
                   &amp;tmpnam &amp;vmsopen &amp;vmssysopen &amp;waitfh &amp;writeof );
setdef(&quot;new:[default.dir]&quot;);
$uniquename = tmpnam;
$fh = vmsopen(&quot;my.file&quot;,&quot;rfm=var&quot;,&quot;alq=100&quot;,...) or die $!;
$name = getname($fh);
print $fh &quot;Hello, world!\n&quot;;
flush($fh);
sync($fh);
rewind($fh);
$line = &lt;$fh&gt;;
undef $fh;  # closes file
$fh = vmssysopen(&quot;another.file&quot;, O_RDONLY | O_NDELAY, 0, &quot;ctx=bin&quot;);
sysread($fh,$data,128);
waitfh($fh);
close($fh);
remove(&quot;another.file&quot;);
writeof($pipefh);
binmode($fh);</code></pre>

<h1 id="DESCRIPTION"><a class="permalink" href="./VMS::Stdio.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>This package gives Perl scripts access via VMS extensions to several C stdio operations not available through Perl&#39;s CORE I/O functions. The specific routines are described below. These functions are prototyped as unary operators, with the exception of <code>vmsopen</code> and <code>vmssysopen</code>, which can take any number of arguments, and <code>tmpnam</code>, which takes none.</p>

<p>All of the routines are available for export, though none are exported by default. All of the constants used by <code>vmssysopen</code> to specify access modes are exported by default. The routines are associated with the Exporter tag FUNCTIONS, and the constants are associated with the Exporter tag CONSTANTS, so you can more easily choose what you&#39;d like to import:</p>

<pre><code># import constants, but not functions
use VMS::Stdio;  # same as use VMS::Stdio qw( :DEFAULT );
# import functions, but not constants
use VMS::Stdio qw( !:CONSTANTS :FUNCTIONS ); 
# import both
use VMS::Stdio qw( :CONSTANTS :FUNCTIONS ); 
# import neither
use VMS::Stdio ();</code></pre>

<p>Of course, you can also choose to import specific functions by name, as usual.</p>

<p>This package <code>ISA</code> IO::File, so that you can call IO::File methods on the handles returned by <code>vmsopen</code> and <code>vmssysopen</code>. The IO::File package is not initialized, however, until you actually call a method that VMS::Stdio doesn&#39;t provide. This is done to save startup time for users who don&#39;t wish to use the IO::File methods.</p>

<p><b>Note:</b> In order to conform to naming conventions for Perl extensions and functions, the name of this package was changed to from VMS::stdio to VMS::Stdio as of Perl 5.002, and the names of some routines were changed. For many releases, calls to the old VMS::stdio routines would generate a warning, and then route to the equivalent VMS::Stdio function. This compatibility interface has now been removed.</p>

<dl>

<dt id="binmode"><a class="permalink" href="./VMS::Stdio.html#binmode">#</a>binmode</dt>
<dd>

<p>This function causes the file handle to be reopened with the CRTL&#39;s carriage control processing disabled; its effect is the same as that of the <code>b</code> access mode in <code>vmsopen</code>. After the file is reopened, the file pointer is positioned as close to its position before the call as possible (<i>i.e.</i> as close as fsetpos() can get it -- for some record-structured files, it&#39;s not possible to return to the exact byte offset in the file). Because the file must be reopened, this function cannot be used on temporary-delete files. <code>binmode</code> returns true if successful, and <code>undef</code> if not.</p>

<p>Note that the effect of <code>binmode</code> differs from that of the binmode() function on operating systems such as Windows and MSDOS, and is not needed to process most types of file.</p>

</dd>
<dt id="flush"><a class="permalink" href="./VMS::Stdio.html#flush">#</a>flush</dt>
<dd>

<p>This function causes the contents of stdio buffers for the specified file handle to be flushed. If <code>undef</code> is used as the argument to <code>flush</code>, all currently open file handles are flushed. Like the CRTL fflush() routine, it does not flush any underlying RMS buffers for the file, so the data may not be flushed all the way to the disk. <code>flush</code> returns a true value if successful, and <code>undef</code> if not.</p>

</dd>
<dt id="getname"><a class="permalink" href="./VMS::Stdio.html#getname">#</a>getname</dt>
<dd>

<p>The <code>getname</code> function returns the file specification associated with a Perl I/O handle. If an error occurs, it returns <code>undef</code>.</p>

</dd>
<dt id="remove"><a class="permalink" href="./VMS::Stdio.html#remove">#</a>remove</dt>
<dd>

<p>This function deletes the file named in its argument, returning a true value if successful and <code>undef</code> if not. It differs from the CORE Perl function <code>unlink</code> in that it does not try to reset file protection if the original protection does not give you delete access to the file (cf. <a href="perlvms.html">perlvms</a>). In other words, <code>remove</code> is equivalent to</p>

<pre><code>unlink($file) if VMS::Filespec::candelete($file);</code></pre>

</dd>
<dt id="rewind"><a class="permalink" href="./VMS::Stdio.html#rewind">#</a>rewind</dt>
<dd>

<p><code>rewind</code> resets the current position of the specified file handle to the beginning of the file. It&#39;s really just a convenience method equivalent in effect to <code>seek($fh,0,0)</code>. It returns a true value if successful, and <code>undef</code> if it fails.</p>

</dd>
<dt id="setdef"><a class="permalink" href="./VMS::Stdio.html#setdef">#</a>setdef</dt>
<dd>

<p>This function sets the default device and directory for the process. It is identical to the built-in chdir() operator, except that the change persists after Perl exits. It returns a true value on success, and <code>undef</code> if it encounters an error.</p>

</dd>
<dt id="sync"><a class="permalink" href="./VMS::Stdio.html#sync">#</a>sync</dt>
<dd>

<p>This function flushes buffered data for the specified file handle from stdio and RMS buffers all the way to disk. If successful, it returns a true value; otherwise, it returns <code>undef</code>.</p>

</dd>
<dt id="tmpnam"><a class="permalink" href="./VMS::Stdio.html#tmpnam">#</a>tmpnam</dt>
<dd>

<p>The <code>tmpnam</code> function returns a unique string which can be used as a filename when creating temporary files. If, for some reason, it is unable to generate a name, it returns <code>undef</code>.</p>

</dd>
<dt id="vmsopen"><a class="permalink" href="./VMS::Stdio.html#vmsopen">#</a>vmsopen</dt>
<dd>

<p>The <code>vmsopen</code> function enables you to specify optional RMS arguments to the VMS CRTL when opening a file. Its operation is similar to the built-in Perl <code>open</code> function (see <a href="perlfunc.html">perlfunc</a> for a complete description), but it will only open normal files; it cannot open pipes or duplicate existing I/O handles. Up to 8 optional arguments may follow the file name. These arguments should be strings which specify optional file characteristics as allowed by the CRTL. (See the CRTL reference manual description of creat() and fopen() for details.) If successful, <code>vmsopen</code> returns a VMS::Stdio file handle; if an error occurs, it returns <code>undef</code>.</p>

<p>You can use the file handle returned by <code>vmsopen</code> just as you would any other Perl file handle. The class VMS::Stdio ISA IO::File, so you can call IO::File methods using the handle returned by <code>vmsopen</code>. However, <code>use</code>ing VMS::Stdio does not automatically <code>use</code> IO::File; you must do so explicitly in your program if you want to call IO::File methods. This is done to avoid the overhead of initializing the IO::File package in programs which intend to use the handle returned by <code>vmsopen</code> as a normal Perl file handle only. When the scalar containing a VMS::Stdio file handle is overwritten, <code>undef</code>d, or goes out of scope, the associated file is closed automatically.</p>

<p>File characteristic options:</p>

<dl>

<dt id="alq=INTEGER"><a class="permalink" href="./VMS::Stdio.html#alq=INTEGER">#</a><a id="alq"></a><a id="alq-INTEGER"></a>alq=INTEGER</dt>
<dd>

<p>Sets the allocation quantity for this file</p>

</dd>
<dt id="bls=INTEGER"><a class="permalink" href="./VMS::Stdio.html#bls=INTEGER">#</a><a id="bls"></a><a id="bls-INTEGER"></a>bls=INTEGER</dt>
<dd>

<p>File blocksize</p>

</dd>
<dt id="ctx=STRING"><a class="permalink" href="./VMS::Stdio.html#ctx=STRING">#</a><a id="ctx"></a><a id="ctx-STRING"></a>ctx=STRING</dt>
<dd>

<p>Sets the context for the file. Takes one of these arguments:</p>

<dl>

<dt id="bin"><a class="permalink" href="./VMS::Stdio.html#bin">#</a>bin</dt>
<dd>

<p>Disables LF to CRLF translation</p>

</dd>
<dt id="cvt"><a class="permalink" href="./VMS::Stdio.html#cvt">#</a>cvt</dt>
<dd>

<p>Negates previous setting of <code>ctx=noctx</code></p>

</dd>
<dt id="nocvt"><a class="permalink" href="./VMS::Stdio.html#nocvt">#</a>nocvt</dt>
<dd>

<p>Disables conversion of FORTRAN carriage control</p>

</dd>
<dt id="rec"><a class="permalink" href="./VMS::Stdio.html#rec">#</a>rec</dt>
<dd>

<p>Force record-mode access</p>

</dd>
<dt id="stm"><a class="permalink" href="./VMS::Stdio.html#stm">#</a>stm</dt>
<dd>

<p>Force stream mode</p>

</dd>
<dt id="xplct"><a class="permalink" href="./VMS::Stdio.html#xplct">#</a>xplct</dt>
<dd>

<p>Causes records to be flushed <i>only</i> when the file is closed, or when an explicit flush is done</p>

</dd>
</dl>

</dd>
<dt id="deq=INTEGER"><a class="permalink" href="./VMS::Stdio.html#deq=INTEGER">#</a><a id="deq"></a><a id="deq-INTEGER"></a>deq=INTEGER</dt>
<dd>

<p>Sets the default extension quantity</p>

</dd>
<dt id="dna=FILESPEC"><a class="permalink" href="./VMS::Stdio.html#dna=FILESPEC">#</a><a id="dna"></a><a id="dna-FILESPEC"></a>dna=FILESPEC</dt>
<dd>

<p>Sets the default filename string. Used to fill in any missing pieces of the filename passed.</p>

</dd>
<dt id="fop=STRING"><a class="permalink" href="./VMS::Stdio.html#fop=STRING">#</a><a id="fop"></a><a id="fop-STRING"></a>fop=STRING</dt>
<dd>

<p>File processing option. Takes one or more of the following (in a comma-separated list if there&#39;s more than one)</p>

<dl>

<dt id="ctg"><a class="permalink" href="./VMS::Stdio.html#ctg">#</a>ctg</dt>
<dd>

<p>Contiguous.</p>

</dd>
<dt id="cbt"><a class="permalink" href="./VMS::Stdio.html#cbt">#</a>cbt</dt>
<dd>

<p>Contiguous-best-try.</p>

</dd>
<dt id="dfw"><a class="permalink" href="./VMS::Stdio.html#dfw">#</a>dfw</dt>
<dd>

<p>Deferred write; only applicable to files opened for shared access.</p>

</dd>
<dt id="dlt"><a class="permalink" href="./VMS::Stdio.html#dlt">#</a>dlt</dt>
<dd>

<p>Delete file on close.</p>

</dd>
<dt id="tef"><a class="permalink" href="./VMS::Stdio.html#tef">#</a>tef</dt>
<dd>

<p>Truncate at end-of-file.</p>

</dd>
<dt id="cif"><a class="permalink" href="./VMS::Stdio.html#cif">#</a>cif</dt>
<dd>

<p>Create if nonexistent.</p>

</dd>
<dt id="sup"><a class="permalink" href="./VMS::Stdio.html#sup">#</a>sup</dt>
<dd>

<p>Supersede.</p>

</dd>
<dt id="scf"><a class="permalink" href="./VMS::Stdio.html#scf">#</a>scf</dt>
<dd>

<p>Submit as command file on close.</p>

</dd>
<dt id="spl"><a class="permalink" href="./VMS::Stdio.html#spl">#</a>spl</dt>
<dd>

<p>Spool to system printer on close.</p>

</dd>
<dt id="tmd"><a class="permalink" href="./VMS::Stdio.html#tmd">#</a>tmd</dt>
<dd>

<p>Temporary delete.</p>

</dd>
<dt id="tmp"><a class="permalink" href="./VMS::Stdio.html#tmp">#</a>tmp</dt>
<dd>

<p>Temporary (no file directory).</p>

</dd>
<dt id="nef"><a class="permalink" href="./VMS::Stdio.html#nef">#</a>nef</dt>
<dd>

<p>Not end-of-file.</p>

</dd>
<dt id="rck"><a class="permalink" href="./VMS::Stdio.html#rck">#</a>rck</dt>
<dd>

<p>Read check compare operation.</p>

</dd>
<dt id="wck"><a class="permalink" href="./VMS::Stdio.html#wck">#</a>wck</dt>
<dd>

<p>Write check compare operation.</p>

</dd>
<dt id="mxv"><a class="permalink" href="./VMS::Stdio.html#mxv">#</a>mxv</dt>
<dd>

<p>Maximize version number.</p>

</dd>
<dt id="rwo"><a class="permalink" href="./VMS::Stdio.html#rwo">#</a>rwo</dt>
<dd>

<p>Rewind file on open.</p>

</dd>
<dt id="pos"><a class="permalink" href="./VMS::Stdio.html#pos">#</a>pos</dt>
<dd>

<p>Current position.</p>

</dd>
<dt id="rwc"><a class="permalink" href="./VMS::Stdio.html#rwc">#</a>rwc</dt>
<dd>

<p>Rewind file on close.</p>

</dd>
<dt id="sqo"><a class="permalink" href="./VMS::Stdio.html#sqo">#</a>sqo</dt>
<dd>

<p>File can only be processed in a sequential manner.</p>

</dd>
</dl>

</dd>
<dt id="fsz=INTEGER"><a class="permalink" href="./VMS::Stdio.html#fsz=INTEGER">#</a><a id="fsz"></a><a id="fsz-INTEGER"></a>fsz=INTEGER</dt>
<dd>

<p>Fixed header size</p>

</dd>
<dt id="gbc=INTEGER"><a class="permalink" href="./VMS::Stdio.html#gbc=INTEGER">#</a><a id="gbc"></a><a id="gbc-INTEGER"></a>gbc=INTEGER</dt>
<dd>

<p>Global buffers requested for the file</p>

</dd>
<dt id="mbc=INTEGER"><a class="permalink" href="./VMS::Stdio.html#mbc=INTEGER">#</a><a id="mbc"></a><a id="mbc-INTEGER"></a>mbc=INTEGER</dt>
<dd>

<p>Multiblock count</p>

</dd>
<dt id="mbf=INTEGER"><a class="permalink" href="./VMS::Stdio.html#mbf=INTEGER">#</a><a id="mbf"></a><a id="mbf-INTEGER"></a>mbf=INTEGER</dt>
<dd>

<p>Bultibuffer count</p>

</dd>
<dt id="mrs=INTEGER"><a class="permalink" href="./VMS::Stdio.html#mrs=INTEGER">#</a><a id="mrs"></a><a id="mrs-INTEGER"></a>mrs=INTEGER</dt>
<dd>

<p>Maximum record size</p>

</dd>
<dt id="rat=STRING"><a class="permalink" href="./VMS::Stdio.html#rat=STRING">#</a><a id="rat"></a><a id="rat-STRING"></a>rat=STRING</dt>
<dd>

<p>File record attributes. Takes one of the following:</p>

<dl>

<dt id="cr"><a class="permalink" href="./VMS::Stdio.html#cr">#</a>cr</dt>
<dd>

<p>Carriage-return control.</p>

</dd>
<dt id="blk"><a class="permalink" href="./VMS::Stdio.html#blk">#</a>blk</dt>
<dd>

<p>Disallow records to span block boundaries.</p>

</dd>
<dt id="ftn"><a class="permalink" href="./VMS::Stdio.html#ftn">#</a>ftn</dt>
<dd>

<p>FORTRAN print control.</p>

</dd>
<dt id="none"><a class="permalink" href="./VMS::Stdio.html#none">#</a>none</dt>
<dd>

<p>Explicitly forces no carriage control.</p>

</dd>
<dt id="prn"><a class="permalink" href="./VMS::Stdio.html#prn">#</a>prn</dt>
<dd>

<p>Print file format.</p>

</dd>
</dl>

</dd>
<dt id="rfm=STRING"><a class="permalink" href="./VMS::Stdio.html#rfm=STRING">#</a><a id="rfm"></a><a id="rfm-STRING"></a>rfm=STRING</dt>
<dd>

<p>File record format. Takes one of the following:</p>

<dl>

<dt id="fix"><a class="permalink" href="./VMS::Stdio.html#fix">#</a>fix</dt>
<dd>

<p>Fixed-length record format.</p>

</dd>
<dt id="stm1"><a class="permalink" href="./VMS::Stdio.html#stm1">#</a>stm</dt>
<dd>

<p>RMS stream record format.</p>

</dd>
<dt id="stmlf"><a class="permalink" href="./VMS::Stdio.html#stmlf">#</a>stmlf</dt>
<dd>

<p>Stream format with line-feed terminator.</p>

</dd>
<dt id="stmcr"><a class="permalink" href="./VMS::Stdio.html#stmcr">#</a>stmcr</dt>
<dd>

<p>Stream format with carriage-return terminator.</p>

</dd>
<dt id="var"><a class="permalink" href="./VMS::Stdio.html#var">#</a>var</dt>
<dd>

<p>Variable-length record format.</p>

</dd>
<dt id="vfc"><a class="permalink" href="./VMS::Stdio.html#vfc">#</a>vfc</dt>
<dd>

<p>Variable-length record with fixed control.</p>

</dd>
<dt id="udf"><a class="permalink" href="./VMS::Stdio.html#udf">#</a>udf</dt>
<dd>

<p>Undefined format</p>

</dd>
</dl>

</dd>
<dt id="rop=STRING"><a class="permalink" href="./VMS::Stdio.html#rop=STRING">#</a><a id="rop"></a><a id="rop-STRING"></a>rop=STRING</dt>
<dd>

<p>Record processing operations. Takes one or more of the following in a comma-separated list:</p>

<dl>

<dt id="asy"><a class="permalink" href="./VMS::Stdio.html#asy">#</a>asy</dt>
<dd>

<p>Asynchronous I/O.</p>

</dd>
<dt id="cco"><a class="permalink" href="./VMS::Stdio.html#cco">#</a>cco</dt>
<dd>

<p>Cancel Ctrl/O (used with Terminal I/O).</p>

</dd>
<dt id="cvt1"><a class="permalink" href="./VMS::Stdio.html#cvt1">#</a>cvt</dt>
<dd>

<p>Capitalizes characters on a read from the terminal.</p>

</dd>
<dt id="eof"><a class="permalink" href="./VMS::Stdio.html#eof">#</a>eof</dt>
<dd>

<p>Positions the record stream to the end-of-file for the connect operation only.</p>

</dd>
<dt id="nlk"><a class="permalink" href="./VMS::Stdio.html#nlk">#</a>nlk</dt>
<dd>

<p>Do not lock record.</p>

</dd>
<dt id="pmt"><a class="permalink" href="./VMS::Stdio.html#pmt">#</a>pmt</dt>
<dd>

<p>Enables use of the prompt specified by pmt=usr-prmpt on input from the terminal.</p>

</dd>
<dt id="pta"><a class="permalink" href="./VMS::Stdio.html#pta">#</a>pta</dt>
<dd>

<p>Eliminates any information in the type-ahead buffer on a read from the terminal.</p>

</dd>
<dt id="rea"><a class="permalink" href="./VMS::Stdio.html#rea">#</a>rea</dt>
<dd>

<p>Locks record for a read operation for this process, while allowing other accessors to read the record.</p>

</dd>
<dt id="rlk"><a class="permalink" href="./VMS::Stdio.html#rlk">#</a>rlk</dt>
<dd>

<p>Locks record for write.</p>

</dd>
<dt id="rne"><a class="permalink" href="./VMS::Stdio.html#rne">#</a>rne</dt>
<dd>

<p>Suppresses echoing of input data on the screen as it is entered on the keyboard.</p>

</dd>
<dt id="rnf"><a class="permalink" href="./VMS::Stdio.html#rnf">#</a>rnf</dt>
<dd>

<p>Indicates that Ctrl/U, Ctrl/R, and DELETE are not to be considered control commands on terminal input, but are to be passed to the application program.</p>

</dd>
<dt id="rrl"><a class="permalink" href="./VMS::Stdio.html#rrl">#</a>rrl</dt>
<dd>

<p>Reads regardless of lock.</p>

</dd>
<dt id="syncsts"><a class="permalink" href="./VMS::Stdio.html#syncsts">#</a>syncsts</dt>
<dd>

<p>Returns success status of RMS$_SYNCH if the requested service completes its task immediately.</p>

</dd>
<dt id="tmo"><a class="permalink" href="./VMS::Stdio.html#tmo">#</a>tmo</dt>
<dd>

<p>Timeout I/O.</p>

</dd>
<dt id="tpt"><a class="permalink" href="./VMS::Stdio.html#tpt">#</a>tpt</dt>
<dd>

<p>Allows put/write services using sequential record access mode to occur at any point in the file, truncating the file at that point.</p>

</dd>
<dt id="ulk"><a class="permalink" href="./VMS::Stdio.html#ulk">#</a>ulk</dt>
<dd>

<p>Prohibits RMS from automatically unlocking records.</p>

</dd>
<dt id="wat"><a class="permalink" href="./VMS::Stdio.html#wat">#</a>wat</dt>
<dd>

<p>Wait until record is available, if currently locked by another stream.</p>

</dd>
<dt id="rah"><a class="permalink" href="./VMS::Stdio.html#rah">#</a>rah</dt>
<dd>

<p>Read ahead.</p>

</dd>
<dt id="wbh"><a class="permalink" href="./VMS::Stdio.html#wbh">#</a>wbh</dt>
<dd>

<p>Write behind.</p>

</dd>
</dl>

</dd>
<dt id="rtv=INTEGER"><a class="permalink" href="./VMS::Stdio.html#rtv=INTEGER">#</a><a id="rtv"></a><a id="rtv-INTEGER"></a>rtv=INTEGER</dt>
<dd>

<p>The number of retrieval pointers that RMS has to maintain (0 to 127255)</p>

</dd>
<dt id="shr=STRING"><a class="permalink" href="./VMS::Stdio.html#shr=STRING">#</a><a id="shr"></a><a id="shr-STRING"></a>shr=STRING</dt>
<dd>

<p>File sharing options. Choose one of the following:</p>

<dl>

<dt id="del"><a class="permalink" href="./VMS::Stdio.html#del">#</a>del</dt>
<dd>

<p>Allows users to delete.</p>

</dd>
<dt id="get"><a class="permalink" href="./VMS::Stdio.html#get">#</a>get</dt>
<dd>

<p>Allows users to read.</p>

</dd>
<dt id="mse"><a class="permalink" href="./VMS::Stdio.html#mse">#</a>mse</dt>
<dd>

<p>Allows mainstream access.</p>

</dd>
<dt id="nil"><a class="permalink" href="./VMS::Stdio.html#nil">#</a>nil</dt>
<dd>

<p>Prohibits file sharing.</p>

</dd>
<dt id="put"><a class="permalink" href="./VMS::Stdio.html#put">#</a>put</dt>
<dd>

<p>Allows users to write.</p>

</dd>
<dt id="upd"><a class="permalink" href="./VMS::Stdio.html#upd">#</a>upd</dt>
<dd>

<p>Allows users to update.</p>

</dd>
<dt id="upi"><a class="permalink" href="./VMS::Stdio.html#upi">#</a>upi</dt>
<dd>

<p>Allows one or more writers.</p>

</dd>
</dl>

</dd>
<dt id="tmo=INTEGER"><a class="permalink" href="./VMS::Stdio.html#tmo=INTEGER">#</a><a id="tmo1"></a><a id="tmo-INTEGER"></a>tmo=INTEGER</dt>
<dd>

<p>I/O timeout value</p>

</dd>
</dl>

</dd>
<dt id="vmssysopen"><a class="permalink" href="./VMS::Stdio.html#vmssysopen">#</a>vmssysopen</dt>
<dd>

<p>This function bears the same relationship to the CORE function <code>sysopen</code> as <code>vmsopen</code> does to <code>open</code>. Its first three arguments are the name, access flags, and permissions for the file. Like <code>vmsopen</code>, it takes up to 8 additional string arguments which specify file characteristics. Its return value is identical to that of <code>vmsopen</code>.</p>

<p>The symbolic constants for the mode argument are exported by VMS::Stdio by default, and are also exported by the Fcntl package.</p>

</dd>
<dt id="waitfh"><a class="permalink" href="./VMS::Stdio.html#waitfh">#</a>waitfh</dt>
<dd>

<p>This function causes Perl to wait for the completion of an I/O operation on the file handle specified as its argument. It is used with handles opened for asynchronous I/O, and performs its task by calling the CRTL routine fwait().</p>

</dd>
<dt id="writeof"><a class="permalink" href="./VMS::Stdio.html#writeof">#</a>writeof</dt>
<dd>

<p>This function writes an EOF to a file handle, if the device driver supports this operation. Its primary use is to send an EOF to a subprocess through a pipe opened for writing without closing the pipe. It returns a true value if successful, and <code>undef</code> if it encounters an error.</p>

</dd>
</dl>

<h1 id="REVISION"><a class="permalink" href="./VMS::Stdio.html#REVISION">#</a>REVISION</h1>

<p>This document was last revised on 13-Oct-1998, for Perl 5.004, 5.005, and 5.6.0.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
